import { createChunk } from "./util";
console.log(createChunk);
return;
onmessage = async (e) => {
  let { file, CHUNK_SIZE, startChunkIndex, endChunkIndex } = e.data;
  let proms = [];
  for (let i = start; i < end; i++) {
    proms.push(createChunk(file, i, CHUNK_SIZE));
  }
  console.log(file, CHUNK_SIZE, startChunkIndex, endChunkIndex);
  return;
  let chunks = await Promise.all(proms);
  postMessage(chunks);
};

// export function createChunk(){

// }
